<template>
    <div class="pageCon">
        <van-pull-refresh :disabled=stopPullScroll v-model="refreshLoading" @refresh="getData('refresh')">
            <div :class="changeHeader ? 'header2' : 'header1'">
                <div class="handleBox">
                    <!-- 用户头像 -->
                    <img class="userImg" :src="user_img" alt="" @error="errhandle">
                    <!-- 搜索框 -->
                    <van-search :class="changeHeader ? 'search2' : 'search1'" readonly
                        :left-icon="changeHeader ? search2 : search1" @click="luntanSearch" v-model="searchValue"
                        shape="round" placeholder="搜索感兴趣的内容吧">
                    </van-search>
                </div>
            </div>
            <!-- 内容结束  -->
            <div class="content">
                <!-- 轮播 -->
                <van-swipe v-if='!changeHeader' class="my-swipe" indicator-color="white">
                    <van-swipe-item v-for="(item, index) in shopPics" :key="index"
                        @click="hrefBanner(item.bannerPro, item.bannerHref)">
                        <img :src="alPath + 'zhonghui/banner/' + item.bannerName" alt="">
                    </van-swipe-item>
                </van-swipe>

                <!-- 社区开始 -->
                <div class="forum" style="position: relative;">
                    <van-tabs animated ref="tabs" :offset-top="changeHeader ? '84' : '94'" sticky v-model="active">
                        <van-tab v-for="(items, indexs) in tabList" :key="indexs" :name="items.val"
                            :title="items.title">
                            <van-list v-model="moreLoading" ref="listRef" :immediate-check="false"
                                :finished="items.loadFinsh" finished-text="没有更多了" @load="getData('more')">
                                <div :class="item.topicFlag == 1 ? 'new-card card' : 'card'"
                                    v-for="(item, iIndex) in tabList[indexs].list" :key="iIndex"
                                    @click="toDetail(item)">
                                    <!-- 医生说-->
                                    <div v-if="item.topicFlag == 0">
                                        <div class="infoCard">
                                            <div class="titleBox1">
                                                <div>{{ item.topicTitle }}</div>
                                            </div>
                                            <div class="coverBox">
                                                <img class="bigImg" :src="alPath + 'zhonghui/topic/' + item.topicCover"
                                                    alt="">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="card1" v-else>
                                        <div class="widthValue">{{ item.topicTitle }}</div>
                                        <div class="chatIcon">
                                            <van-icon name="chat-o" />
                                        </div>
                                        <div class="banner">
                                            <img :src="alPath + 'zhonghui/topic/' + item.topicCover" alt="">
                                            <div class="video">
                                                <van-icon name="play-circle" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </van-list>
                        </van-tab>
                    </van-tabs>
                </div>
                <!-- 社区结束 -->
            </div>
        </van-pull-refresh>

        <img src="../../assets/index/top.png" @click="backTop" v-show="back_top" class="back-top" alt="">
        <!-- 弹窗开始 -->
        <div class="alert-mask" v-for="(item, index) in dialogs" :key="index" v-if="item.flag">
            <div class="alert">
                <!-- 图片 -->
                <img :src="alPath + 'zhonghui/banner/' + item.bannerName" class="alert-img"
                    @click="hrefBanner(item.bannerPro, item.bannerHref)">
                <!-- 关闭按钮 -->
                <van-icon @click="closeMask(index)" name="close" class="alert-close-btn" />
            </div>
        </div>

        <div class="appNavBox">
            <div @click="toPage('/index')">
                <img src="../../assets/navIcon/home1.png" alt="" />
                <span>首页</span>
            </div>
            <div>
                <img src="../../assets/navIcon/luntan2.png" alt="" />
                <span>社区</span>
            </div>
            <div @click="toPage('/geren')">
                <img src="../../assets/navIcon/geren1.png" alt="" />
                <span>我的</span>
            </div>
        </div>

    </div>
</template>

<script>
import { getTopicAndVideo, getTopic, getRecommend, getVideo, getCommunityMain, getOthers, getRecommendList, listAdv } from "../../network/luntan";
import { alPath } from "../../network/request";
export default {
    name: "HomeR",
    data() {
        return {
            alPath,
            active: '0',
            tabList: [
                {
                    title: '推荐',
                    val: '0',
                    list: [],
                    page: 1,
                    loadFinsh: false
                },
                {
                    title: '文章',
                    val: '1',
                    list: [],
                    page: 1,
                    loadFinsh: false
                },
                {
                    title: '视频',
                    val: '2',
                    list: [],
                    page: 1,
                    loadFinsh: false
                }, {
                    title: '音频',
                    val: '3',
                    list: [],
                    page: 1,
                    loadFinsh: true
                },
            ],

            dialogs: [],
            shopPics: [],
            doctors: '',//当前门店 医生信息
            contents: [],
            refreshLoading: false,
            moreLoading: false,
            isFinished: false,
            shop_name: '未登录',
            shop_id: '',
            addNum: -1,
            back_top: false,
            conversations: [],
            birth: '',
            isBirth: false,
            stopPullScroll: false,
            tabScrollTop: '',
            // 用户头像
            user_img: '',
            searchValue: '',
            scrollTop: '',
            changeHeader: false,

            mainPics: "",

            search1: require('../../assets/luntan/search.png'),
            search2: require('../../assets/luntan/search_2.png')

        };
    },
    mounted() {
        var that = this;
        window.addEventListener('scroll', this.handleScroll, true);
        window.onscroll = function () {
            var winScrollTop = document.documentElement.scrollTop || document.body.scrollTop;
            var windowHeight = document.documentElement.clientHeight || document.body.clientHeight;
            var scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight;
            // 监听进度条触底
            if (winScrollTop + windowHeight + 250 >= scrollHeight) {
                console.log('到底了');
                that.getData('more')
            }
        }


    },
    methods: {
        nextDialog: function () {
            this.dialogs[0].flag = true;
        },
        toHrefGoods: function () {
            mui.openWindow({
                url: 'new_vip/newVip_birthday.html',
                id: 'newVip_birthday.html',
            })
        },


        handleScroll: function () {
            var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body
                .scrollTop
            this.scrollTop = scrollTop
            if (scrollTop > 400) {
                this.back_top = true
            } else {
                this.back_top = false
            }
        },
        backTop: function () {
            var timer = setInterval(function () {
                var osTop = document.documentElement.scrollTop || document.body.scrollTop;
                var ispeed = -20;
                document.documentElement.scrollTop = document.body.scrollTop = osTop + ispeed;
                if (osTop === 0) {
                    clearInterval(timer);
                }
            }, 1)
        },
        closeMask: function (index) {
            console.log(index);
            this.dialogs[index].flag = false;
            this.$forceUpdate()
            console.log(this.dialogs);

        },

        ifUserLogin: function () {
            this.user_id = (localStorage.userId == undefined ? 0 : localStorage.userId);
            if (this.user_id == 0) {
                this.$router.replace('/wxLogin')
                return false;
            } else {
                return true;
            }
        },

        hrefBanner(id, url) {
            if (url == 'javascript:void(0)') {
                return
            } else {
                if (url == 'detail') {
                    localStorage.product_id = id
                } else if (url == 'forumKonwledge') {
                    localStorage.topic_id = id;
                } else if (url == 'videoDetail') {
                    localStorage.hv_id = id;
                }
                this.$router.push('/' + url)
            }

        },

        getData: function (status) {
            if (status != 'more') {
                getTopicAndVideo().then(res => {
                    if (res.flag) {
                        console.log(res);
                        this.tabList[0].list = res.data.tuijian
                        this.tabList[0].loadFinsh = res.data.tuijian.length <= 10
                        this.tabList[1].list = res.data.topic
                        this.tabList[1].loadFinsh = res.data.topic.length <= 10
                        this.tabList[2].list = res.data.video
                        this.tabList[2].loadFinsh = res.data.video.length <= 10
                        this.active = 0
                        this.refreshLoading = false
                        if (status == 'first') {
                            this.dialogs = []
                            this.shopPics = []
                            res.data.banner.forEach(ele => {
                                if (ele.bannerFlag == '5') {
                                    ele.flag = true
                                    this.dialogs.push(ele)
                                } else if (ele.bannerFlag == 1) {
                                    this.shopPics.push(ele)
                                }
                            })
                        } else {
                            this.shopPics = res.data.banner.filter(item => {
                                return item.bannerFlag == 1
                            })
                        }
                    }
                })
            } else if (status == 'more') {
                console.log(this.active);

                var page = this.tabList[this.active].page + 1;

                if (this.tabList[this.active].loadFinsh) {
                    this.$toast('暂无更多内容')
                    return
                }

                if (this.active == 0) {

                    var tagIds = '', arr = localStorage.userTagList ? JSON.parse(localStorage.userTagList) : []
                    console.log(arr);

                    tagIds = arr.join(',')
                    console.log(tagIds);

                    getRecommend({
                        tagIds,
                        page,
                        size: 10
                    }).then(res => {
                        if (res.flag) {
                            this.tabList[this.active].list.push(...res.data.list)
                            this.tabList[this.active].loadFinsh = res.data.list.length <= 10
                            this.moreLoading = false
                        }
                    })
                } else if (this.active == 1) {
                    getTopic({
                        page,
                        size: 10
                    }).then(res => {
                        if (res.flag) {
                            this.tabList[this.active].list.push(...res.data.list)
                            this.tabList[this.active].loadFinsh = res.data.list.length <= 10
                            this.moreLoading = false
                        }
                    })
                } else if (this.active == 2) {
                    getVideo({
                        page,
                        size: 10
                    }).then(res => {
                        if (res.flag) {
                            this.tabList[this.active].list.push(...res.data.list)
                            this.tabList[this.active].loadFinsh = res.data.list.length <= 10
                            this.moreLoading = false
                        }
                    })
                }
            }
            if (localStorage.user) {
                // 获取用户头像
                this.user_img = this.alPath + 'zhonghui/user/' + JSON.parse(localStorage.user).userImg
                console.log(this.user_img);

            } else {
                this.user_img = require('../../assets/luntan/timg.jpg');
            }
        },



        toPage(url) {
            this.$router.push(url)
        },

        luntanSearch: function () {
            if (this.ifUserLogin()) {
                this.$router.push('/luntanSearch')
            }
        },
        toDetail: function (item) {
            console.log(item);
            if (this.ifUserLogin()) {
                if (item.topicFlag == 0) {
                    localStorage.topic_id = item.topicId;
                    this.$router.push('/forumKonwledge')
                } else {
                    localStorage.hv_id = item.topicId;
                    this.$router.push('/videoDetail')
                }
            }
        },


        errhandle: function () {
            this.user_img = require('../../assets/geren/timg.png')
        },

    },
    created() {

        this.getData('first');

    },
    //计算属性
    computed: {},
    watch: {
        scrollTop(newval) {
            if (newval > 100) {
                this.changeHeader = true
            } else {
                this.changeHeader = false
            }
        }
    },
    filters: {

    }
};
</script>

<style scoped>
body {
    background: #f2f2f2;
}

.header1 {
    display: flex;
    color: #fff;
    padding: 30px 24px 0px;
    position: fixed;
    box-sizing: border-box;
    height: 210px;
    width: 100%;
    z-index: 88;
    background-color: #ed0a2b;
}

.headerBlue {
    background: linear-gradient(90deg, #8FD4F7 0%, #74B6FB 100%) !important;
}

.header2 {
    color: #fff;
    padding: 60px 24px 36px;
    position: fixed;
    box-sizing: border-box;
    width: 100%;
    z-index: 88;
    background: #fff;
}

.header2 .fabu {
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #666666;
}

.header1 .van-search__content--round {
    /* background: linear-gradient(45deg, #FF3B14, #EA654A); */
    background: rgba(225, 225, 225, 0.2);
}

.header2 .van-search__content--round {
    border: 2px solid #999;
    background-color: #fff !important;

}

.search1 ::placeholder {
    font-size: 28px !important;
    font-family: Source Han Sans CN !important;
    font-weight: 400 !important;
    color: #FFFFFF !important;
    /* color: #333333 !important; */
    opacity: 0.5;
}

.search2 ::placeholder {
    font-size: 28px !important;
    font-family: Source Han Sans CN !important;
    font-weight: 400 !important;
    color: #000 !important;
    /* color: #333333 !important; */
    opacity: 0.5;
}

.van-tabs--line .van-tabs__wrap {
    height: 100px;
}

.van-tabs__line {
    margin-left: 12px;
    height: 14px;
    width: 80px;
    background: url('../../assets/luntan/tabsLine.png') no-repeat;
    background-size: 52px 12px;
    background-color: #fff !important;
}

.forum1 {
    position: relative;
    box-sizing: border-box;
    padding: 0 32px 20px 32px;
    background-color: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum {
    background: #f2f2f2;
}

.forum-btn1 {
    display: flex;
    align-items: center;
    height: 36px;
    color: #fff;
    font-weight: bold;
    background: #FF4E5E;
    font-size: 24px;
    justify-content: center;
    float: left;
    position: absolute;
    right: 32px;
    top: 20px;
    border-radius: 20px;
    padding: 0 8px 0 12px;
}

.forum-title1 {
    font-weight: bold;
    font-size: 24px;
    padding-top: 20px;
    line-height: 28px;
    margin-bottom: 16px;
    padding-right: 240px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.forum-btn1>div {
    height: 24px;
}

.forum-length1 {
    height: 64px;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.forum-length1>div {
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.forum-length1>div:nth-child(1) {
    box-sizing: border-box;
    margin-right: 4px;
    padding-left: 44px;
    background: linear-gradient(90deg, #2AB7FA 0%, #61C8F9 100%);
}

.forum-length1>div:nth-child(2) {
    display: flex;
    flex-flow: row-reverse;
    padding-right: 44px;
    background: linear-gradient(90deg, #FC7984 0%, #FF4E5E 100%);
}

.vstitle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 24px;
    position: relative;
}

.vstitle img {
    width: 76px;
    height: 42px;
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -38px;
}

.vstitle>div {
    width: 50%;
    box-sizing: border-box;
    font-size: 36px;
    font-weight: bold;
}

.vstitle>div:nth-child(1) {
    display: flex;
    flex-flow: row-reverse;
    padding-right: 72px;
    color: #53C4F9;
}

.vstitle>div:nth-child(3) {
    display: flex;
    padding-left: 64px;
    color: #FF4E5E;
}

.search {
    font-size: 24px;
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    top: 0px;
    color: #999;
}

.search img {
    width: 32px;
    margin-right: 8px;
}

.shopName {
    width: 100%;
    text-align: center;
    padding-top: 32px;
    font-size: 52px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: Alibaba PuHuiTi;
    color: #FFFFFF;
}

.handleBox {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.searchImg {
    position: relative;
    right: 20px;
    width: 34px;
    height: 36px;
}

.userImg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.van-search {
    padding-right: 0px !important;
    width: 680px;
    height: 64px;
    background: none;
}

.fabu {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 46px;
}

.fabu img {
    margin-right: 12px;
    width: 26px;
    height: 26px;
}

.sign {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 28px;
    display: flex;
    align-items: center;
}

.sign img {
    width: 36px;
}



.content {
    padding: 230px 0px 0;
    position: relative;
    background: #f2f2f2;
}

.content::before {
    height: 200px;
    position: absolute;
    width: 100%;
    background-color: #ed0a2b;
    left: 0;
    top: 160px;
    content: '';
    /* border-radius: 0 0 50% 50%; */
}

.fuContent::before {
    height: 352px;
    position: absolute;
    width: 100%;
    /* background-color: #ed0a2b; */
    background: linear-gradient(90deg, #8FD4F7 0%, #74B6FB 100%);
    left: 0;
    top: 160px;
    content: '';
    /* border-radius: 0 0 50% 50%; */
}

.fuBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -20px;
    width: 100%;
    height: 240px;
    z-index: 2;
    /* background-image: url(../img/AYearActive/lunEnter.png); */
    background-size: 100% 100%;
}

.my-swipe {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
    width: 702px;
    height: 268px;
    /* position: absolute; */
    width: 100%;
    /* left: 0; */
    /* top: 220px; */
}

.cellImg {
    width: 100%;
    height: 100%;
}

.van-swipe-item {
    padding: 0 24px;
    box-sizing: border-box;
}

.my-swipe img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 16px;
}

.navBtnBox {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0 24px;
    width: 100%;
    height: 180px;
}

.leftBtn {
    position: relative;
    width: 57%;
    height: 180px;
    background: linear-gradient(220deg, #E51C39 0%, #FA5069 81%);
    border-radius: 14px;
}

.leftImg {
    position: absolute;
    top: 40px;
    left: 32px;
    width: 104px;
    height: 114px;
}

.textBg {
    position: absolute;
    top: 50px;
    left: 180px;
    width: 176px;
    height: 82px;
}


.rightBtn {
    position: relative;
    width: 39%;
    height: 180px;
    /* background: linear-gradient(220deg, #E51C39 0%, #FA5069 81%); */
    border-radius: 14px;


}

.rightBtn>img {
    width: 100%;
    height: 100%;
}

.rightTit {
    position: absolute;
    top: 76px;
    left: 116px;
    width: 142px;
    height: 34px;
}

.rightImg {
    position: absolute;
    top: 52px;
    left: 16px;
    width: 88px;
    height: 82px;
}

.template {
    position: relative;
}

.title {
    font-size: 32px;
    font-weight: bold;
    line-height: 36px;
    margin-bottom: 24px;
}

.more {
    position: absolute;
    right: 0px;
    top: 4px;
    font-size: 24px;
    color: #666;
    display: flex;
    align-items: center;
    z-index: 22;
}

.doctor-box {
    display: flex;
    background-color: #fff;
    border-radius: 16px;
    padding: 32px 0;
    position: relative;
    font-size: 24px;
    color: #666;
    margin-bottom: 24px;
    min-height: 84px;
    overflow-x: scroll;
    box-shadow: 0 4px 6px #f0f0f0;
}

.doctor-box>div {
    position: relative;
    padding-left: 140px;
    width: 50%;
    max-width: 50%;
    min-width: 50%;
    box-sizing: border-box;
    padding-right: 24px;
}

.doctor-box>div>div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.doctor-box>div>div:nth-child(1) {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    padding-top: 4px;
}

.doctor-box>div>div:nth-child(2) {
    padding-top: 8px;
}

.doctor-box>div img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    position: absolute;
    left: 24px;
    top: 0;
    background-color: #f0f0f0;
}

.doctor-box>div::before {
    width: 2px;
    height: 84px;
    position: absolute;
    right: -2px;
    top: 0;
    content: '';
    background-color: #dcdcdc;
}

.doctor-box>div:nth-child(2) {
    padding-left: 140px;
}

.doctor-box>div:nth-child(2) img {
    left: 24px;
}

/* 改版 全部 医生说 */
.infoCard {
    box-sizing: border-box;
    /* padding: 17px 0px ; */
    /* margin-bottom: 7px; */
    width: 100%;
    background-color: #fff;
}

.docInfo {
    margin-bottom: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    /* background: #fff; */
}

.chatIcon {
    position: absolute;
    bottom: 24px;
    left: 48px;
}

.docInfoLeft {
    width: 460px;
}

.docInfoLeft img {
    margin-right: 20px;
    float: left;
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.docName {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #333333;
}

.docTag {
    font-size: 24px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #666666;
}

/* 精选标签 */
.jingxuan {
    padding: 2px 6px;
    display: inline-block;
    width: 80px;
    height: 32px;
    background: #1F89FA;
    border-radius: 2px;
    font-size: 24px;
    font-family: Alibaba PuHuiTi;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 2px;
}

.jingxuan img {
    float: right;
    margin: 6px 0px 2px 4px;
    width: 18px;
    height: 24px;
    border-radius: 0 !important;
}

/* 主推标签 */
.zhutui {
    padding: 2px 6px;
    display: inline-block;
    width: 80px;
    height: 32px;
    background: #FBB349;
    border-radius: 2px;
    font-size: 24px;
    font-family: Alibaba PuHuiTi;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 2px;
}

.zhutui img {
    float: right;
    margin: 6px 0px 2px 4px;
    width: 18px;
    height: 24px;
    border-radius: 0 !important;
}

.docInfoRight {
    position: relative;
}

.docInfoRight div {
    position: absolute;
    top: -40px;
    right: 0px;
    width: 140px;
    text-align: right;
    font-size: 24px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #999999;
}

.titleBox {
    margin-bottom: 28px;
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #333333;
}

.titleBox1 {
    position: relative;
    width: 100%;
    margin-bottom: 28px;
    font-size: 36px;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #333333;
}

.titleBox1>div:first-child {
    width: 84%;

}

.dateTip1 {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 140px;
    text-align: right;
    font-size: 24px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #999999;
}

.bigImg {
    width: 100% !important;
    height: 328px !important;
}

.zhutuiContent {
    display: flex;
    width: 100%;
    height: 144px;
}

.zhutuiImg {
    margin-left: 34px;
    width: 312px;
    height: 144px;
    border-radius: 16px;
}

.zhutuiContentLeft {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.zhuituiTitle {
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #333333;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

}

.coverBox {
    position: relative;
    margin-bottom: 28px;
    width: 100%;
}

.coverBox img {
    width: 100%;
    height: 100%;
}

.doclogo span {
    padding: 8px 12px;
    width: 164px;
    height: 40px;
    background: #E5F9F4;
    border-radius: 8px;
    font-size: 24px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #04B38A;
}

.overBox {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 192px;
    background-color: #F2F2F2;
    opacity: 0.7;
    margin-bottom: 28px;
}

.videoDuration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 106px;
    height: 40px;
    border-radius: 20px;
    background-color: #333;
    font-size: 24px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    color: #FFFFFF;

}

.card {
    background-color: #fff;
    border-radius: 16px;
    /* padding: 12px; */
    padding: 24px 24px 20px;
    position: relative;
    min-height: 192px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    justify-content: space-between;
    box-shadow: 0 4px 6px #f0f0f0;
}

/* .card1{
	padding: 0 12px;
} */



/* .card1  */
.card1>div:nth-child(1) {
    font-weight: bold;
    font-size: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    padding-right: 344px;
}

.tit {
    font-size: 28px;
    font-family: Source Han Sans CN;
    font-weight: bold;
    color: #333333;
}

.card1>div:nth-child(2) {
    color: #ff4e5e;
    font-size: 32px;
    height: 32px;
}

.card1>div:nth-child(2) img {
    width: 24px;
}

.banner {
    position: absolute;
    width: 312px !important;
    height: 144px !important;
    right: 24px;
    top: 24px;
}

.banner img {
    position: absolute;
    width: 100% !important;
    height: 100% !important;
    left: 0;
    top: 0;
    border-radius: 16px;
    display: block;
}

.video {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 70px;
    color: #fff;
}

.doctor-img {
    position: absolute;
    width: 84px;
    height: 84px;
    right: 356px;
    bottom: 24px;
}

.icon1 {
    width: 48px;
}

.icon2 {
    width: 44px;
}












.btn-box img {
    margin-right: 8px;
}

.new-card {
    flex-direction: column;
    height: 456px !important;
    justify-content: center !important;
    padding-bottom: 88px !important;
}

.widthValue {
    width: 100%;
}

.new-card>div:nth-child(1) {
    padding-right: 0 !important;
    -webkit-line-clamp: 1 !important
}

.new-card>div:nth-child(2) {
    padding-right: 0 !important;
    bottom: 20px;
    position: absolute;
}

.new-card .banner {
    position: relative !important;
    width: 100% !important;
    height: 300px !important;
    /* padding: 0 12px !important; */
}

.new-card .banner img {
    width: 100%;
    position: relative !important;
    object-fit: cover;
    left: 24px;
}

.new-card .video {
    top: 0;
    left: 24px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    font-size: 100px !important;
}

.doctors-class>div:nth-child(1) {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
}

.doctors-class>div:nth-child(1)::before {
    background: transparent !important;
}

.tosend {
    position: fixed;
    right: 0;
    bottom: 200px;
    color: #fff;
    width: 100px;
    height: 100px;
    background: #FF3B14;
    opacity: 0.8;
    border-radius: 100px;
    z-index: 88;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    line-height: 24px;
}

.border-none>div:nth-child(2)::before {
    width: 0 !important;
}

.back-top {
    position: fixed;
    bottom: 96px;
    z-index: 888;
    right: 0;
    width: 100px;
    box-shadow: 2px 6px 6px #dcdcdc;
    height: 100px;
    display: block;
    border-radius: 50%;
}

.none-doctor {
    height: 148px;
    text-align: center;
    line-height: 150px;
    background-color: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 24px;
    color: #666;
}

.van-notice-bar__content {
    display: flex;
}

::-webkit-scrollbar {
    display: none;
}


.new-doing>div {

    position: relative;
}

.new-item {
    padding-left: 132px;
    position: relative;
    border-right: 2px solid #f2f2f2;
    padding-right: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 440px;
    min-width: 440px;
    max-width: 440px;
    box-sizing: border-box;
}

.new-item img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    position: absolute;
    left: 24px;
    top: 0;
    background-color: #f0f0f0;
}

.new-item>div:nth-child(1) {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.new-item>div:nth-child(2) {
    font-size: 24px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.active-box>div {
    width: 100%;
    border-radius: 16px;
    height: 120px;
}

.sign-in {
    background-color: #FFDDD5;
    position: relative;
    overflow: hidden;
    color: #FF3B14;
    font-weight: bold;
}

.column {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.sign-in img {
    width: 100%;
    display: block;
    height: 100%;
}

.column>div {
    width: 49%;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    font-weight: bold;
    padding-top: 2vw;
    position: relative;
    font-size: 4.2vw;
}

.column>div:nth-child(1) {
    background-color: #FFF3C8;
    color: #FF7C06;
}

.column>div:nth-child(2) {
    background-color: #D7EFFE;
    color: #0680FA;
}

.icon-img {
    position: absolute;
    right: 0;
    bottom: 0;
}

.luntan_one_bg {
    width: 31.48vw;
    height: 21.34vw;
    display: block;
}

.luntan_two_bg {
    width: 17.6vw;
    height: 12.27vw;
    display: block;
}

.luntan_one_icon {
    width: 18.68vw;
    position: absolute;
    bottom: 20px;
    right: 24px;
    display: block;
    height: 17.08vw;
}

.luntan_two_icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: block;
    width: 11.74vw;
}

.sign-in>div:nth-child(1) {
    padding-left: 3.2vw;
    padding-top: 2vw;
    position: relative;
    font-size: 4.2vw;
}

.sign-in>div:nth-child(2) {
    padding-left: 3.2vw;
    position: relative;
    font-size: 3.4vw;
    color: #666;
    font-weight: 400;
    padding-top: 1vw;
}

.go-icon {
    height: 4.82vw;
    line-height: 4.82vw;
    width: 13.88vw;
    border: 2px solid #ff3b14;
    border-radius: 4.82vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 3.6vw;
    margin-left: 3.2vw;
    font-size: 4vw;
}

.yellow {
    border: 1px solid #FF7C06;
    margin-top: 1.8vw;
}

.blue {
    border: 1px solid #0680FA;
    margin-top: 1.8vw;
}

.go-icon>div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4.82vw;
    line-height: 4.82vw;
}

.column>div>div:nth-child(1) {
    padding-left: 3.2vw;
}

.alert-mask {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
    background: rgba(0, 0, 0, .4);
    width: 100%;
    height: 100%;
}

.alert {
    position: absolute;
    top: 44%;
    left: 50%;
    display: block;
    width: 640px;
    height: 800px;
    margin-left: -320px;
    margin-top: -400px;
    border-radius: 16px;
}

.alert-img {
    display: block;
    width: 100%;
    height: 100%;
}

.alert-close-btn {
    position: absolute;
    bottom: -136px;
    left: 50%;
    font-size: 56px;
    font-weight: bold;
    color: #FFF;
    margin-left: -28px;
    z-index: 100;
}

.mainContent {
    height: 1000px;
}

.change {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
}

.change>div {
    display: flex;
    align-items: center;
    height: 32px;
    font-weight: bold;
    font-size: 24px;
}

.forum-card {
    position: relative;
    background-color: #fff;
    border-radius: 16px;
    padding: 32px 24px 88px 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px #f2f2f2;
}

.pk-title {
    background-color: #fefbdb;
    font-size: 30px;
    font-weight: bold;
    box-sizing: border-box;
    padding: 0 32px 0 24px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pk-cont {
    min-width: 100%;
    display: flex;
    color: #fff;
    font-size: 30px;
    position: relative;
    font-weight: bold;
    padding-top: 32px;
    justify-content: space-between;
    /* overflow: hidden; */
    /* box-shadow: 0 4px 5px #dcdcdc; */
    /* border-radius: 16px; */
}

.pk-cont img {
    width: 76px;
    height: 40px;
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -38px;
    top: 44px;
}

.pk-cont>div {
    width: calc(50% - 40px);
    text-align: center;
    height: 64px;


    line-height: 64px;
    position: relative;
    box-shadow: 0 8px 6px -2px #dcdcdc;
}

.pk-cont>div:nth-child(1) {
    background-color: #2AB7FA;
    border-radius: 32px 0 0 32px;
}

.pk-cont>div:nth-child(3) {
    background-color: #FF4E5E;
    border-radius: 0 32px 32px 0;
}

.pk-btn {
    display: flex;
    flex-flow: row-reverse;
    align-items: center;
    width: 220px;
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    justify-content: center;
    border-radius: 24px;
    padding-left: 12px;
    position: absolute;
    right: 8px;
    bottom: 24px;
    height: 44px;
    color: #666;
}

.pk-btn>div {
    padding-top: 4px;
}

/* .pk-icon2::after {
	position: absolute;
	content: '';
	width: 0;
	height: 0;
	border-bottom: 38px solid #FF4E5E;
	border-left: 12px solid transparent;
	left: -11px;
	top: -4px;
} */
.pk-icon2::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 0 76px 24px;
    border-color: transparent #ffffff;
    /* border-top: 12px solid #2AB7FA; */
    left: -2px;
    /* border-right: 38px solid transparent; */
    top: -2px;
}

/* .pk-icon1::after {
	position: absolute;
	content: '';
	width: 0;
	height: 0;
	border-top: 38px solid #2AB7FA;
	right: -11px;
	border-right: 12px solid transparent;
	top: 0;
} */
.pk-icon1::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 76px 24px 0px 0;
    border-color: transparent #ffffff;
    /* border-top: 12px solid #2AB7FA; */
    right: -2px;
    /* border-right: 38px solid transparent; */
    top: -4px;
}

.pk-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 20px 0;
}

.pk-between>div {
    display: flex;
    align-items: center;
    height: 40px;

    font-weight: bold;
    font-size: 24px;
}





.pk-between img {
    width: 32px;
    margin-right: 8px;
}

.pk-between>div>div {
    height: 40px;
    display: flex;
    align-items: center;
}

.pk-between>div:nth-child(1) {
    color: #2AB7FA;
}

.pk-between>div:nth-child(2) {
    color: #FF4E5E;
}

.pk-data {
    position: relative;
    height: 32px;
    font-size: 28px;
    padding: 0 80px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.pk-data>div:nth-child(1) {
    position: absolute;
    left: 0;
    top: 0;
    color: #2AB7FA;
}

.pk-data>div:nth-child(3) {
    top: 0;
    position: absolute;
    right: 0;
    color: #FF4E5E;
}

.pk-length {
    height: 8px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
}

.pk-length>div {
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.pk-length>div:nth-child(1) {
    background-color: #2AB7FA;
}

.pk-length>div:nth-child(1)::before {
    position: absolute;
    content: '';
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #fff;
}

.pk-length>div:nth-child(2) {
    background-color: #FF4E5E;
}

.pk-length>div:nth-child(2)::before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #fff;
}

.pk-icon1,
.pk-icon2 {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 0 12px;
    /* overflow: hidden; */
}

.pk-icon1>div,
.pk-icon2>div {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.nav-tab {
    position: fixed;
    width: 100%;
    z-index: 200;
    bottom: 0;
    left: 0;
    display: flex;
    height: 100px;
    background-color: #fff;
    color: #929292;
}

.nav-tab>div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.nav-tab>div>div {
    font-size: 24px;
}

.mui-icon {
    font-size: 48px !important;
}

.nav-active {
    color: #ff3b14;
}

.ce {
    background-color: #929292;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 20px;
    border: 14px solid #fff;
}

.ce img {
    width: 44px;
    height: 44px;
    display: block;
}

.red-dian {
    position: relative;
}

.red-dian::before {
    position: absolute;
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 100px;
    background-color: #ff3b14;
    right: 50%;
    margin-right: -24px;
    top: 16px;
}

.van-tabs__line {
    background-color: #FF8F14;
}

.van-tabs__wrap {
    height: 60px !important;
}

.van-tab {
    width: 150px !important;
    box-sizing: border-box !important;
}

/* .van-sticky--fixed {
	padding: 0 12px !important;
} */

.music {
    position: relative !important;
    padding: 12px 120px 24px 160px !important;
    box-shadow: 0 4px 6px #f0f0f0 !important;
    margin-bottom: 32px !important;
    height: 160px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-around !important;
}

.music div {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.hv_id {
    font-size: 28px !important;
    margin-bottom: 12px;
}

.hv_synopsis {
    font-size: 24px !important;
    color: #999 !important;
}

.musicimg,
.musicbox {
    width: 120px !important;
    height: 120px !important;
    position: absolute !important;
    left: 0 !important;
    border-radius: 8px !important;
    top: 0px !important;
}

.musicbox {
    top: 20px !important;
}

.music>div:nth-child(4) {
    position: absolute !important;
    right: 32px !important;
    font-size: 60px !important;
    color: #666 !important;
    top: 50px !important;
}

.van-list {
    /* padding-top: 24px; */
    padding-bottom: 100px;
    /* width: 100%; */
    /* min-height: 1600px; */
    /* background-color: #F2F2F2; */
}


.pageCon {
    background: #f2f2f2;
    height: 100vh;

}



/deep/.van-field__left-icon{
    display: flex;
    align-items: center;
    justify-content: center;
}



















.van-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;
}







.stemCellArticleList,
.stemCellCase {
    height: 48%;
    box-shadow: 0px 2px 8px 0px rgba(47, 47, 47, 0.14);
    border-radius: 10px;
    background-color: #F3F7FC;

}














.listImg {
    width: 56px;
    height: 66px;
}


.btnImgBox {
    position: absolute;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;

}

.btnImgBox>img:first-child {
    margin-bottom: 32px;
    width: 410px;
    height: 108px;
}

.btnImgBox>img:last-child {
    width: 220px;
    height: 52px;
    animation: round_animate 1s linear infinite;
    -webkit-animation: round_animate 1s linear infinite;
}

@keyframes round_animate {
    0% {
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
    }

    50% {
        transform: scale(1.2);
        -webkit-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -ms-transform: scale(1.2);
        -o-transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


.enterBox {
    box-sizing: border-box;
    margin: 0% auto 24px;
    width: 100%;
    padding: 0 24px;
}

.enterBox>img {
    width: 100%;
    border-radius: 16px;

}


.van-cell {
    line-height: 50px !important;
}
</style>